<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="__PUBLIC__/Css/bootstrap.css">
<link rel="stylesheet" href="__PUBLIC__/Css/Home/layout.css">
	<title></title>
</head>
<body class='container' >
	<div class="navbar navbar-default" role="navigation" id='daohang'>
        <div class="navbar-header">
			<a class="navbar-brand" href="#"><strong>启明星签到</strong></a>
        </div>
        <div class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li><a href="__APP__/Qiandao/index">签到</a></li>
            <li><a href="__APP__/Qiandao/showinfo">本周详细签到情况</a></li>
          </ul>
          <ul class="nav navbar-nav navbar-right">
			  <li class="active"><a><?php echo (session('name')); ?></a></li>
            <li><a href="http://bbs.xlanlab.com">返回论坛</a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>

	 <div>
		 <!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" href="__PUBLIC__/Css/Home/qiandao.css">
	<link rel="stylesheet" href="__PUBLIC__/Css/bootstrap.css">
	<title>签到</title>
	<script>
    function a(){
		var obj = document.getElementById('show_select');    
			for (var i = 0; i < obj.options.length; i++) {        
				if (obj.options[i].value == obj.value) {
                	if((i+1) >= obj.options.length){
						obj.options[0].selected=true;
                    }else{
						obj.options[i].selected=true;
                    }
					break;
			}        
			} 
    }
   </script>

</head>
<body class='container'>
	<form role='form' class='form-horizontal' action="__URL__/showinfo" method='post'>
		选择要查看的组别
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<select id='show_select' class='form-control' name="groid">
			<?php if(is_array($groarr)): $i = 0; $__LIST__ = $groarr;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if($groupId == $i): ?><option  value='<?php echo ($i); ?>' selected='selected'><?php echo ($vo[groupname]); ?></option>
			<?php else: ?>
				<option  value='<?php echo ($i); ?>'><?php echo ($vo[groupname]); ?></option><?php endif; endforeach; endif; else: echo "" ;endif; ?>
		</select>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		第
		<select id='show_select1' class='form-control' name="selweek">
			<?php $__FOR_START_10388__=1;$__FOR_END_10388__=$weeknum+1;for($i=$__FOR_START_10388__;$i < $__FOR_END_10388__;$i+=1){ if($selweek == $i): ?><option  value='<?php echo ($i); ?>' selected='selected'><?php echo ($i); ?></option>
			<?php else: ?>
				<option  value='<?php echo ($i); ?>'><?php echo ($i); ?></option><?php endif; } ?>
		</select>
		周
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<button id='input_submit' class='btn  btn-primary' type="submit">查询</button>
	</form>

	<br/>
	<table  class='table table-bordered table-striped' width='900'>
		<tr>
			<td>姓名</td>
			<td colspan='3'>周一</td>
			<td colspan='3'>周二</td>
			<td colspan='3'>周三</td>
			<td colspan='3'>周四</td>
			<td colspan='3'>周五</td>
			<td colspan='3'>周六</td>
			<td colspan='3'>周日</td>
			<td>合计</td>
		</tr>
		<tbody>
		<?php if(is_array($qdlist)): $i = 0; $__LIST__ = $qdlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
				<?php if($vo["name"] == ""): else: ?>
					<td><?php echo ($vo["name"]); ?></td>
					<?php $__FOR_START_1255__=1;$__FOR_END_1255__=8;for($k=$__FOR_START_1255__;$k < $__FOR_END_1255__;$k+=1){ if($k == 7): if($vo[$k-7] == "1"): ?><td id='sign'></td>
							<td></td>
							<td></td>
						<?php elseif($vo[$k-7] == 2): ?>
							<td ></td>
							<td id='sign'></td>
							<td></td>
						<?php elseif($vo[$k-7] == 4): ?>
							<td ></td>
							<td></td>
							<td id='sign'></td>
						<?php elseif($vo[$k-7] == 3): ?>
							<td id='sign'></td>
							<td id='sign'></td>
							<td></td>
						<?php elseif($vo[$k-7] == 5): ?>
							<td id='sign'></td>
							<td></td>
							<td id='sign'></td>
						<?php elseif($vo[$k-7] == 6): ?>
							<td ></td>
							<td id='sign'></td>
							<td id='sign'></td>
						<?php elseif($vo[$k-7] == 7): ?>
							<td id='sign'></td>
							<td id='sign'></td>
							<td id='sign'></td>
						<?php else: ?>
							<td ></td>
							<td ></td>
							<td ></td><?php endif; ?>
					<?php else: ?>
						<?php if($vo[$k] == "1"): ?><td id='sign'></td>
							<td></td>
							<td></td>
						<?php elseif($vo[$k] == 2): ?>
							<td ></td>
							<td id='sign'></td>
							<td></td>
						<?php elseif($vo[$k] == 4): ?>
							<td ></td>
							<td></td>
							<td id='sign'></td>
						<?php elseif($vo[$k] == 3): ?>
							<td id='sign'></td>
							<td id='sign'></td>
							<td></td>
						<?php elseif($vo[$k] == 5): ?>
							<td id='sign'></td>
							<td></td>
							<td id='sign'></td>
						<?php elseif($vo[$k] == 6): ?>
							<td ></td>
							<td id='sign'></td>
							<td id='sign'></td>
						<?php elseif($vo[$k] == 7): ?>
							<td id='sign'></td>
							<td id='sign'></td>
							<td id='sign'></td>
						<?php else: ?>
							<td ></td>
							<td ></td>
							<td ></td><?php endif; endif; } ?>
					<td><?php echo ($vo["sum"]); ?></td><?php endif; ?>
			</tr><?php endforeach; endif; else: echo "" ;endif; ?>
		</tbody>
	</table>
</body>
</html>

	 </div>
</body>
</html>